package com.lggry.staticmethod;

public class Test {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.printInfo();

        Student stu2 = new Student();
        stu2.printName("李刚");
        stu2.printNameLength();

        //规范：不需要类中访问对象的数据，用static
        //规范：需要访问对象的数据，不用static
    }
}
